package com.travelparadise.tests;

import java.util.logging.Logger;

import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.Transactional;

import junit.framework.TestCase;
import com.travelparadise.dao.VolDao;
import com.travelparadise.domain.Vol;

public class TestVolDao extends TestCase{
	
	private VolDao volDao = null;
	private /*ISousTest*/VolDao sousTest = null;
	private Logger logger = Logger.getLogger("TestVolDao");
	
	protected void setUp() throws Exception {
		ApplicationContext springContext = SpringContextForTest.getSpringContext();
		this.volDao = (VolDao) springContext.getBean("volDaoHibernate");
		this.sousTest = (/*ISousTest*/VolDao) springContext.getBean("sousTestVolDao");
		
	}
	
	public void testGetById(){
		Vol vol = //volDao.getById(1);
		sousTest.getById(1);
		//logger.info(vol.toString());
	}
}
